package org.example.coffeeshoporderingsystem.order.service;

import org.example.coffeeshoporderingsystem.common.service.BaseService;
import org.example.coffeeshoporderingsystem.order.entity.Order;
import org.example.coffeeshoporderingsystem.order.dto.AddProductDTO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


public interface OrderService extends BaseService<Order> {
    /**
     * 根据当前会员 查询订单
     * @return
     */
    Order findByCurrMember();

    /**
     * 添加商品
     * @param productDTO
     * @return
     */
    boolean saveOrUpdateProduct(AddProductDTO productDTO) ;
}
